package com.qnbc.mystery.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.qnbc.mystery.mapper.BoxSetMapper;
import com.qnbc.mystery.domain.BoxSet;
import com.qnbc.mystery.service.IBoxSetService;

/**
 * 奖盒设置Service业务层处理
 * 
 * @author guzj
 * @date 2024-03-04
 */
@Service
public class BoxSetServiceImpl implements IBoxSetService 
{
    @Autowired
    private BoxSetMapper boxSetMapper;

    /**
     * 查询奖盒设置
     * 
     * @param id 奖盒设置主键
     * @return 奖盒设置
     */
    @Override
    public BoxSet selectBoxSetById(Long id)
    {
        return boxSetMapper.selectBoxSetById(id);
    }

    /**
     * 查询奖盒设置列表
     * 
     * @param boxSet 奖盒设置
     * @return 奖盒设置
     */
    @Override
    public List<BoxSet> selectBoxSetList(BoxSet boxSet)
    {
        return boxSetMapper.selectBoxSetList(boxSet);
    }

    /**
     * 新增奖盒设置
     * 
     * @param boxSet 奖盒设置
     * @return 结果
     */
    @Override
    public int insertBoxSet(BoxSet boxSet)
    {
        return boxSetMapper.insertBoxSet(boxSet);
    }

    /**
     * 修改奖盒设置
     * 
     * @param boxSet 奖盒设置
     * @return 结果
     */
    @Override
    public int updateBoxSet(BoxSet boxSet)
    {
        return boxSetMapper.updateBoxSet(boxSet);
    }

    /**
     * 批量删除奖盒设置
     * 
     * @param ids 需要删除的奖盒设置主键
     * @return 结果
     */
    @Override
    public int deleteBoxSetByIds(Long[] ids)
    {
        return boxSetMapper.deleteBoxSetByIds(ids);
    }

    /**
     * 删除奖盒设置信息
     * 
     * @param id 奖盒设置主键
     * @return 结果
     */
    @Override
    public int deleteBoxSetById(Long id)
    {
        return boxSetMapper.deleteBoxSetById(id);
    }
}
